<template>
  <cube-button @click="showDialog">show dialog</cube-button>
</template>
<script>
  export default {
    data () {
      return {}
    },
    methods: {
      showDialog () {
        let temp = this.$createDialog({
          type: 'alert',
          title: 'Alert',
          content: 'dialog content'
        })
        temp.show()
      }
    }
  }
</script>
